package com.ruoyi.syf.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.syf.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("排查隐患表")
public class RiskCheckDanger extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "排查记录ID")
    private Long recordId;

    @ApiModelProperty(value = "隐患名称")
    private String dangerName;

    @ApiModelProperty(value = "隐患类型,安全1;工艺2;电气:3; 仪表:4; 消防:5; 总图:6; 设备:7; 其他:8")
    private String hazardDangerType;

    @ApiModelProperty(value = "等级,一般隐患:0;重大隐患: 1")
    private String dangerLever;

    @ApiModelProperty(value = "隐患描述")
    private String dangerDescribe;

    @ApiModelProperty(value = "原因分析")
    private String cause;

    @ApiModelProperty(value = "照片")
    private String photograph;

    @ApiModelProperty(value = "整改责任人部门")
    private Long fixDept;

    @ApiModelProperty(value = "整改责任人")
    private Long fixBy;

    @ApiModelProperty(value = "治理类型,0限期,1即查即改")
    private String governanceType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "整改限期时间")
    private Date endFixTime;

    @ApiModelProperty(value = "隐患状态:0待确认、1已确认、2不采纳")
    private String dangerStatus;

}
